package me.zhengjie.modules.property.domain;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class Payment implements Serializable {

    private int month;
    private BigDecimal monthlyPayment;
    private BigDecimal principalPayment;
    private BigDecimal interestPayment;

    public Payment(int month, BigDecimal monthlyPayment, BigDecimal principalPayment, BigDecimal interestPayment) {
        this.month = month;
        this.monthlyPayment = monthlyPayment;
        this.principalPayment = principalPayment;
        this.interestPayment = interestPayment;
    }


}